﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="cmi-select.aspx.cs" Async="true" Inherits="cmi_cmi_select" MaintainScrollPositionOnPostback="true"
    EnableEventValidation="true" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="/includes/jtip.js" type="text/javascript"></script>

    <script src="/includes/carinsurance/profile.js" type="text/javascript"></script>

    <link href="/css/popup_login.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/css/pathbar.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <div id="container">
        <div class="body">
            <div class="topcol">
            </div>
            <div class="body">
                <div class="padding_lr15px">
                    <!--Column Content | Start-->
                    <div class="col_content">
                        <div class="topcol">
                        </div>
                        <div class="body">
                            <div class="padding_lr30px">
                                <div class="eight columns">
                                    <div class="tx_title21 uppercase">
                                        <%=GetGlobalResourceObject("Menu", "OrderCompulsory")%>
                                    </div>
                                </div>
                                <div class="four columns" style="text-align: right;">
                                    <asp:LinkButton ID="lbnLoginPopup" runat="server" OnClick="lbnLoginPopup_Click" Text="<%$ Resources:CarInsurance,LoginToQuotes%>"> </asp:LinkButton>
                                </div>
                                <div class="seperator_15px">
                                </div>
                                <div id="CarForm">
                                    <asp:UpdatePanel runat="server" ID="uplService">
                                        <ContentTemplate>
                                            <div class="eight columns">
                                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                            </div>
                                            <br />
                                            <div class="form_col_1 left">
                                                <asp:Label ID="lblService" runat="server" Text="<%$ Resources:CarInsurance,SelectService%>" />
                                            </div>
                                            <div class="form_col_2 left" style="display: inline;">
                                                <asp:RadioButtonList runat="server" ID="rdlService" RepeatDirection="Horizontal"
                                                    AutoPostBack="true" OnSelectedIndexChanged="rdlService_SelectedIndexChanged">
                                                    <asp:ListItem Text="<%$Resources:CarInsurance,Service1%>" Value="1"></asp:ListItem>
                                                    <asp:ListItem Text="<%$Resources:CarInsurance,Service2%>" Value="2"></asp:ListItem>
                                                    <asp:ListItem Text="<%$Resources:CarInsurance,Service3%>" Value="3"></asp:ListItem>
                                                </asp:RadioButtonList>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvService" ControlToValidate="rdlService"
                                                    runat="server" ErrorMessage="" Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                            </div>
                                            <br />
                                            <div class="seperator_form">
                                            </div>
                                            <div id="divVehicleType" runat="server" style="display: none;">
                                                <div class="form_col_1 left">
                                                    <asp:Label ID="lblVehicleType" runat="server" Text="<%$ Resources:CarInsurance,CarType%>" />
                                                </div>
                                                <div class="form_col_2 left">
                                                    <asp:RadioButtonList runat="server" ID="rdlVehicleType" RepeatDirection="Horizontal"
                                                        onclick="GetCTPL();">
                                                        <%--AutoPostBack="true" OnSelectedIndexChanged="rdlVehicleType_SelectedIndexChanged">--%>
                                                        <asp:ListItem Text="<%$Resources:CarInsurance,VehicleType1%>" Value="1"></asp:ListItem>
                                                        <asp:ListItem Text="<%$Resources:CarInsurance,VehicleType2%>" Value="2"></asp:ListItem>
                                                        <asp:ListItem Text="<%$Resources:CarInsurance,VehicleType3%>" Value="3"></asp:ListItem>
                                                    </asp:RadioButtonList>
                                                    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvVehicleType"
                                                        ControlToValidate="rdlVehicleType" runat="server" ErrorMessage="" Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div runat="server" id="divPrice" style="display: none;">
                                                <%--<div id="divIsHaveBlueBook" runat="server">
                                                    <asp:CheckBox ID="chkCMIDiscount" runat="server" Checked="true" onclick="GetCTPL();" /><asp:Label
                                                        ID="lblcmidiscount" runat="server">ส่วนลด</asp:Label>
                                                </div>--%>
                                                <div class="form_col_1 left">
                                                    <asp:Label ID="lblInsurer" runat="server" Text="<%$ Resources:CarInsurance,Insurer%>" />
                                                </div>
                                                <div class="form_col_2 left">
                                                    <asp:DropDownList runat="server" ID="ddlInsurer" CssClass="contactDropdown" onclick="GetCTPL();">
                                                        <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                                        <asp:ListItem Text="<%$Resources:CarInsurance,CTPLCompany1%>" Value="11"></asp:ListItem>
                                                        <asp:ListItem Text="<%$Resources:CarInsurance,CTPLCompany2%>" Value="45"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvInsurer" ControlToValidate="ddlInsurer"
                                                                InitialValue="-1" runat="server" ErrorMessage="" Text="" ValidationGroup="carprofile"></asp:RequiredFieldValidator>
                                                </div>
                                                <table style="border-collapse: collapse; width: 100%" cellpadding="2" cellspacing="1">
                                                    <tr>
                                                        <td>
                                                            <b>
                                                                <%=GetGlobalResourceObject("ResultPage", "CTPL")%></b>
                                                        </td>
                                                        <td>
                                                            <b>
                                                                <%=GetGlobalResourceObject("CarInsurance", "Discount")%></b>
                                                        </td>
                                                        <td>
                                                            <b>
                                                                <%=GetGlobalResourceObject("CarInsurance", "Total")%></b>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblSumCTPL"></asp:Label><asp:HiddenField runat="server"
                                                                ID="hidSumCTPL" />
                                                        </td>
                                                        <td style="color: Red">
                                                            <asp:Label runat="server" ID="lblSumDiscount"></asp:Label><asp:HiddenField runat="server"
                                                                ID="hidSumDiscount" />
                                                        </td>
                                                        <td>
                                                            <strong>
                                                                <asp:Label runat="server" ID="lblTotal"></asp:Label><asp:HiddenField runat="server"
                                                                    ID="hidTotal" />
                                                            </strong>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    <div class="seperator_form">
                                    </div>
                                    <div class="nine columns top">
                                        <div class="twelve columns top10">
                                            <div class="three columns tx_form top10">
                                                <asp:Label ID="lblName" runat="server" Text="<%$ Resources:CarInsurance,Name%>" />
                                            </div>
                                            <div class="four columns">
                                                <div class="form-group has-error">
                                                    <asp:TextBox ID="txtName" MaxLength="50" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                                        ValidationGroup="carprofile" ErrorMessage="" Text="" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revName" runat="server" ValidationGroup="carprofile"
                                                        ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" CssClass="validationErrorControl"
                                                        ControlToValidate="txtName" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="four columns">
                                            </div>
                                            <div class="twelve columns">
                                                <hr />
                                            </div>
                                        </div>
                                        <div class="twelve columns top10">
                                            <div class="three columns tx_form top10">
                                                <asp:Label ID="lblEmail" runat="server" Text="<%$ Resources:CarInsurance,EmailAddress%>" />
                                            </div>
                                            <div class="four columns">
                                                <div class="form-group has-error">
                                                    <asp:UpdatePanel ID="uplConfirmEmail" runat="server">
                                                        <ContentTemplate>
                                                            <asp:TextBox ID="txtEmailAddress" runat="server" MaxLength="80"></asp:TextBox><br />
                                                            <asp:Label ID="lblEmailSample" runat="server" CssClass="SampleText" Text="<%$ Resources:CarInsurance,EmailSample%>"></asp:Label>
                                                            <asp:RequiredFieldValidator ID="rfvEmail" runat="server" Text="" CssClass="validationErrorControl"
                                                                ValidationGroup="carprofile" ErrorMessage="" ControlToValidate="txtEmailAddress"
                                                                Display="Dynamic"></asp:RequiredFieldValidator><br />
                                                            <asp:RegularExpressionValidator ID="rfvEmailValid" Text="" CssClass="validationErrorControl"
                                                                runat="server" ValidationGroup="carprofile" ErrorMessage="<%$ Resources:CarInsurance,EmailError%>"
                                                                ControlToValidate="txtEmailAddress" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                                Display="Dynamic"></asp:RegularExpressionValidator>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                </div>
                                            </div>
                                            <div class="four columns top">
                                            </div>
                                            <div class="one columns top right">
                                                <a runat="server" href="<%$Resources:CarInsuranceToolTips,Email%>" class="jTip" id="A4"
                                                    name="<%$ Resources:CarInsurance,Help%>">
                                                    <img src="/images/icon/help.png" alt="Help" /></a></div>
                                            <div class="twelve columns">
                                                <hr />
                                            </div>
                                        </div>
                                        <div class="twelve columns top10">
                                            <div class="three columns tx_form top10">
                                                <asp:Label ID="lblMobileNo" runat="server" Text="<%$ Resources:CarInsurance,MobileNo%>" />
                                            </div>
                                            <div class="four columns">
                                                <div class="form-group has-error">
                                                    <uc10:usrPhoneNo ID="txtMobileNo" ValidationGroup="carprofile" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                                        PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                                        runat="server" />
                                                </div>
                                            </div>
                                            <div class="four columns top">
                                            </div>
                                            <div class="one columns top right">
                                                <a runat="server" href="<%$Resources:CarInsuranceToolTips,Mobile%>" class="jTip"
                                                    id="A5" name="<%$ Resources:CarInsurance,Help%>">
                                                    <img src="/images/icon/help.png" alt="Help" /></a></div>
                                            <div class="twelve columns">
                                                <hr />
                                            </div>
                                        </div>
                                        <div class="twelve columns top10">
                                            <asp:CheckBox ID="checkIsAgreement" runat="server" Checked="true" />
                                            <asp:Label ID="lblAgreement" runat="server" Text="<%$ Resources:CarInsurance,Agreement%>"></asp:Label>
                                        </div>
                                        <div class="twelve columns top10">
                                            <div class="seven columns">
                                            </div>
                                            <div class="four columns center" id="btn_next">
                                                <asp:Button ID="btnNext" Text="<%$ Resources:CarInsurance,Next%>" onmouseup="this.className = 'btn_next';"
                                                    onmouseout="this.className = 'btn_next';" CssClass="btn_next" OnClientClick="OnOffObject(true);LoadValidationErrorCss();if (Page_ClientValidate('carprofile')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}else{OnOffObject(false);}"
                                                    runat="server" ValidationGroup="carprofile" ToolTip="Next" CausesValidation="true"
                                                    OnClick="btnNext_Click" />
                                                <br />
                                                <br />
                                            </div>
                                            <div class="one columns top right">
                                            </div>
                                        </div>
                                    </div>
                                    <div id="divPopup">
                                        <div style="margin: 0 auto; width: 266px; text-align: center; display: none;">
                                            <asp:ImageButton ID="imgbtnTest" runat="server" ImageUrl="/images/button/reminder_travel_travelpack.png"
                                                AlternateText="Set Travel Insurance Reminder" />
                                        </div>
                                        <cc1:ModalPopupExtender ID="mpePassword" runat="server" Enabled="true" TargetControlID="imgbtnTest"
                                            PopupControlID="pnlPassword" BackgroundCssClass="modalBackground" DropShadow="true"
                                            BehaviorID="mdlPopupPassword">
                                        </cc1:ModalPopupExtender>
                                        <asp:Panel ID="pnlPassword" runat="server" Style="display: none; background-color: White;"
                                            DefaultButton="imgbtnLogin">
                                            <asp:UpdatePanel ID="upPassword" runat="server" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <div class="sr_wrapper_travel_new" style="width: 430px; padding: 20px; border: 9px solid #3b3b3b;
                                                        overflow: visible; height: auto;">
                                                        <div class="sr_content_travel_3">
                                                            <div class="sr_form_new">
                                                                <span class="tx_title21">
                                                                    <asp:Label ID="lblLoginPopTitle" runat="server" Text="<%$ Resources:CarInsurance,EmailExist%>"></asp:Label>
                                                                </span>
                                                                <div>
                                                                    <asp:Label ID="lblAccountMessage" runat="server"></asp:Label>
                                                                </div>
                                                                <br />
                                                                <div>
                                                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="userpassword"
                                                                        ShowSummary="True" CssClass="errorSummary" HeaderText="<%$Resources:Menu,RequiredField %>">
                                                                    </asp:ValidationSummary>
                                                                </div>
                                                                <br />
                                                                <div class="f_row">
                                                                    <span class="form_l email_ico">
                                                                        <%= GetGlobalResourceObject("Menu","EmailAddress") %></span>
                                                                    <div class="f_field">
                                                                        <asp:TextBox ID="txtExEmail" runat="server" Width="210px" />
                                                                    </div>
                                                                    <div class="f_field">
                                                                        <asp:RequiredFieldValidator ID="rfvExEmail" CssClass="validationErrorControl" runat="server"
                                                                            ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvExEmailValid"
                                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExEmail"
                                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </div>
                                                                    <div class="clear">
                                                                    </div>
                                                                </div>
                                                                <div class="f_row">
                                                                    <span class="form_l name_ico">
                                                                        <%= GetGlobalResourceObject("Menu","Password") %></span>
                                                                    <div class="f_field">
                                                                        <asp:TextBox ID="txtExAuthCode" runat="server" TextMode="Password" CssClass="form_login" />
                                                                    </div>
                                                                    <div class="f_field">
                                                                        <asp:RequiredFieldValidator ID="rfvExAuthCode" CssClass="validationErrorControl"
                                                                            runat="server" ValidationGroup="userpassword" ErrorMessage="" Text="" ControlToValidate="txtExAuthCode"
                                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                                        <asp:Label runat="server" ID="lblEmailMessage" Visible="false" CssClass="validationError"></asp:Label>
                                                                    </div>
                                                                    <br />
                                                                    <br />
                                                                    <div class="f_field">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/user/passwordrecovery.aspx"
                                                                            onclick="HidePopup();ShowHidePasswordPanel(true);"><%= GetGlobalResourceObject("Menu", "ForgotPassword")%></asp:HyperLink>
                                                                    </div>
                                                                    <div class="clear">
                                                                    </div>
                                                                </div>
                                                                <div class="f_row">
                                                                    <asp:Label ID="Label1" runat="server" CssClass="assumption"></asp:Label>
                                                                </div>
                                                                <div id="div1" style="display: none">
                                                                    <table style="width: 100%;">
                                                                        <tr>
                                                                            <td align="center" valign="middle">
                                                                                <img src="/images/loader/loader_main.gif" id="img1" alt="Loading" width="30" height="20" />
                                                                                <span id="Span1">Please wait...</span>
                                                                            </td>
                                                                        </tr>
                                                                        <tr align="right">
                                                                            <td>
                                                                                <a id="A2" href="javascript:StopSubmit();">Cancel</a>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                                <div class="f_row">
                                                                    &nbsp;</div>
                                                                <div class="f_row">
                                                                    <asp:Label ID="Label2" Text="" Font-Size="12px" ForeColor="Green" Font-Bold="true"
                                                                        Font-Names="Arial" runat="server"></asp:Label>
                                                                </div>
                                                                <div class="f_row sr_button">
                                                                    <asp:Button ID="imgbtnLogin" runat="server" onmousedown="this.className = 'button_proceed_mousedown';"
                                                                        onmouseup="this.className = 'button_proceed';" onmouseout="this.className = 'button_proceed';"
                                                                        CssClass="button_proceed" OnClientClick="LoadValidationErrorCss();HideOnSubmit();if (Page_ClientValidate('userpassword')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                                                        ValidationGroup="userpassword" ToolTip="Sign in" OnClick="imgbtnLogin_Click" /><div
                                                                            style="display: none;">
                                                                            <input id="inputLoginCount" runat="server" value="0" />
                                                                            <input id="inputHideSignal" runat="server" value="0" /><input id="inputLoginHide"
                                                                                runat="server" value="0" /></div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div style="text-align: left; width: 100%;">
                                                            <asp:Button ID="btnPasswordClose" runat="server" Text="" Width="87px" OnClick="btnPasswordClose_Click"
                                                                OnClientClick="HidePopup();ShowHidePasswordPanel(true);" CssClass="button_close" />
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </asp:Panel>
                                    </div>
                                    <br />
                                    <br />
                                    <div style="width: 100%; text-align: center">
                                        <table style="border-collapse: collapse;" cellpadding="2" cellspacing="1">
                                            <tr>
                                                <td bgcolor="#FF9900" style="border: solid 1px #7889A7; color: white">
                                                    <b>
                                                        <%=GetGlobalResourceObject("CarInsurance", "OrderOnlineWithPayment")%></b>
                                                </td>
                                                <td bgcolor="#FF9900" style="border: solid 1px #7889A7; color: white">
                                                    <b>
                                                        <%=GetGlobalResourceObject("CarInsurance", "ActPolicyViaEmail")%></b>
                                                </td>
                                                <td bgcolor="#FF9900" style="border: solid 1px #7889A7; color: white">
                                                    <b>
                                                        <%=GetGlobalResourceObject("CarInsurance", "FreeDeliveryByThaiPost")%></b>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "MonFri1")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "SameDay")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "SameDay")%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "MonFri2")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "SameDay")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "NexrDay")%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "MonFri3")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "NexrDay")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "NexrDay")%>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "Weekend")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "Monday")%>
                                                </td>
                                                <td style="border: solid 1px #7889A7; text-align: left">
                                                    <%=GetGlobalResourceObject("CarInsurance", "Monday")%>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <!--Form | End-->
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                    <!--Column Content | End-->
                    <!--Column Right | Start-->
                    <div>
                        <div id="Hotline" style="text-align: center; padding-left: 15px;">
                            <asp:Image ID="imgBanner" runat="server" ImageUrl="<%$Resources:ImageResource,PaymentStepUrl%>"
                                AlternateText="Payment" />
                        </div>
                    </div>
                    <!--Column Right | End-->
                </div>
            </div>
            <div class="bottom">
            </div>
        </div>
    </div>

    <script type="text/javascript">
   
        function showDiscountText()
        {
            var rdlService = document.getElementsByName('<%= rdlService.UniqueID %>');
            var rdlVehicleType = document.getElementsByName('<%= rdlVehicleType.UniqueID%>');
            for (var x = 0; x < rdlService.length; x++) 
            {
               if (rdlService[x].checked && (x == '0' || x == '1')) 
                {
                    rdlVehicleType[0].Text = "<br />(ป้ายทะเบียนตัวหนังสือสีดำ)<br />(พ.ร.บ. 646 บาท)<br />(ลดเหลือ 580* บาท)";
                    rdlVehicleType[1].innerText = "<br>(ป้ายทะเบียนตัวหนังสือสีเขียว)<br />(พ.ร.บ. 968 บาท)<br />(ลดเหลือ 880* บาท)";
                    rdlVehicleType[2].innerText = "<br />(ป้ายทะเบียนตัวหนังสือสีฟ้า)<br />(พ.ร.บ. 1,183 บาท)<br />(ลดเหลือ 1,080* บาท) ";
                }
            }
           
        }
        
        

     function GetCTPL() {
            var selService = $('#<%= rdlService.ClientID%> input:checked').val();
            var selCar = $('#<%= rdlVehicleType.ClientID %> input:checked').val();
            var selInsurer = $('#<%= ddlInsurer.ClientID %> input:selected').val();
            if(selService!="3")
            {
                if (selCar == "1") {
                    document.getElementById('<%=lblSumCTPL.ClientID%>').innerHTML = "645.21";
                    document.getElementById('<%=hidSumCTPL.ClientID%>').value = "645.21";

                    document.getElementById('<%=lblSumDiscount.ClientID%>').innerHTML = "77.43";
                    document.getElementById('<%=hidSumDiscount.ClientID%>').value = "77.43";

                    document.getElementById('<%=lblTotal.ClientID%>').innerHTML = "567.78";
                    document.getElementById('<%=hidTotal.ClientID%>').value = "567.78";
                }
                else if (selCar == "2") {
                    document.getElementById('<%=lblSumCTPL.ClientID%>').innerHTML = "967.28";
                    document.getElementById('<%=hidSumCTPL.ClientID%>').value = "967.28";

                    document.getElementById('<%=lblSumDiscount.ClientID%>').innerHTML = "116.07";
                    document.getElementById('<%=hidSumDiscount.ClientID%>').value = "116.07";

                    document.getElementById('<%=lblTotal.ClientID%>').innerHTML = "851.20";
                    document.getElementById('<%=hidTotal.ClientID%>').value = "851.20";
                }
                else if (selCar == "3") {
                    document.getElementById('<%=lblSumCTPL.ClientID%>').innerHTML = "1182.35";
                    document.getElementById('<%=hidSumCTPL.ClientID%>').value = "1182.35";

                    document.getElementById('<%=lblSumDiscount.ClientID%>').innerHTML = "141.88";
                    document.getElementById('<%=hidSumDiscount.ClientID%>').value = "141.88";

                    document.getElementById('<%=lblTotal.ClientID%>').innerHTML = "1040.47";
                    document.getElementById('<%=hidTotal.ClientID%>').value = "1040.47";
                }
            }
            else
            {
            
                document.getElementById('<%=lblSumCTPL.ClientID%>').innerHTML = "";
                document.getElementById('<%=hidSumCTPL.ClientID%>').value = "";

                document.getElementById('<%=lblSumDiscount.ClientID%>').innerHTML = "";
                document.getElementById('<%=hidSumDiscount.ClientID%>').value = "";

                document.getElementById('<%=lblTotal.ClientID%>').innerHTML = "";
                document.getElementById('<%=hidTotal.ClientID%>').value = "";
            }    
                
        }
        
        
        function OnOffObject(OnOff) {

        }

        function ShowHidePasswordPanel(OnOff) {
            if (OnOff == true) {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = 'none';
            }
            else {
                document.getElementById('<%=pnlPassword.ClientID%>').style.display = '';
            }
        }

        function HideOnSubmit() {

            isHide = document.getElementById('<%=inputHideSignal.ClientID%>').value;
            if (isHide == "1") {
                HidePopup();
                ShowHidePasswordPanel(true);
            }
        }

    </script>

</asp:Content>
